import request from '../lib/request.js'

export function all(){
	return request({url:'/api/admin/role/all',method:'get'});
}
export function create(data){
	return request({url:'/api/admin/role/create',method:'post',data:data});
}
export function update(data){
	return request({url:'/api/admin/role/update',method:'post',data:data});
}
export function updatePermission(data){
	return request({url:'/api/admin/role/permission/update',method:'post',data:data});
}
export function updateMenu(data){
	return request({url:'/api/admin/role/menu/update',method:'post',data:data});
}
export function allAccess(param){
	return request({url:'/api/admin/access/all',method:'get',param:param});
}
export function allMenu(param){
	return request({url:'/api/admin/menu/all',method:'get',param:param});
}
